package com.gitee.sop.sopauth.controller.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author: Admin
 * @date: 2021/3/15
 * @description:
 * @copyright: 重庆万蓝兴科技有限公司
 */
@Data
public class CodeParam {

    /**
     * 验证码下发类型：normal / sms email
     */
    @ApiModelProperty(required = true, notes = "验证码下发类型：normal/phone/email", example = "normal")
    private String sendType;

    /**
     * 下发验证码
     */
    private String sendCode;

    private String appId;

    @ApiModelProperty(required = true, notes = "验证码接收者（邮箱/手机号/用户账号）", example = "151233***3")
    @NotBlank(message = "username不能为空")
    private String username;

}
